package com.tech.cloudapp.po;

import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class UserInfoPO  {

    /**
     * 用户唯一标识
     */
    @NotEmpty(message = "用户ID不能为空",groups = {UserRegister.class,UserQuery.class,UserUpdate.class})
    private String userId;
    /**
     * 用户头像URL
     */
    @NotEmpty(message = "头像不能为空",groups = {UserUpdate.class})
    private String avatar;
    /*
     * 用户昵称
     */
    @NotEmpty(message = "昵称不能为空",groups = {UserUpdate.class})
    private String nickName;

    /**
     * 手机号码
     */
    @NotEmpty(message = "手机号码不能为空",groups = {UserRegister.class})
    private String mobilephone;

    /**
     * email地址
     */
    private String email;

    /**
     * 密码
     */
    @NotEmpty(message = "密码不能为空",groups = {UserRegister.class})
    private String passwrd;



    public interface  UserRegister
    {

    }


    public   interface UserQuery
    {

    }


    public interface UserUpdate
    {

    }
}
